package com.community.owner.service;

import java.util.List;
import com.community.owner.domain.Owner;
import com.community.owner.domain.vo.OwnerAddRequest;
import com.community.owner.domain.vo.OwnerVo;
import org.springframework.transaction.annotation.Transactional;

/**
 * 业主信息Service接口
 * 
 * @author ruoyi
 * @date 2025-10-25
 */
public interface OwnerService
{
    /**
     * 查询业主信息
     * 
     * @param ownerId 业主信息主键
     * @return 业主信息
     */
    public Owner selectOwnerByOwnerId(Long ownerId);

    /**
     * 查询业主信息列表
     * 
     * @param owner 业主信息
     * @return 业主信息集合
     */
    public List<Owner> selectOwnerList(Owner owner);

    /**
     * 新增业主信息
     * 
     * @param owner 业主信息
     * @return 结果
     */
    public int insertOwner(Owner owner);

    /**
     * 修改业主信息
     * 
     * @param owner 业主信息
     * @return 结果
     */
    public int updateOwner(Owner owner);

    /**
     * 批量删除业主信息
     * 
     * @param ownerIds 需要删除的业主信息主键集合
     * @return 结果
     */
    public int deleteOwnerByOwnerIds(Long[] ownerIds);

    /**
     * 删除业主信息信息
     * 
     * @param ownerId 业主信息主键
     * @return 结果
     */
    public int deleteOwnerByOwnerId(Long ownerId);

    Owner selectOwnerWithDetailsByOwnerId(Long ownerId);

    Long count();

    List<OwnerVo> selectOwnerVoList(OwnerVo ownerVo);

    Integer addPermsByFile(List<Owner> ownerList);

    @Transactional
    Integer addOwnerWithUser(OwnerAddRequest request);
}
